package com.newcapec.org.demo.dao;

import com.newcapec.org.demo.entity.UserInfoEntity;
import org.apache.ibatis.annotations.Mapper;

import javax.websocket.server.PathParam;
import java.util.List;

@Mapper
public interface UserInfoDao {
    int deleteByPrimaryKey(Integer userId);

    int insert(UserInfoEntity record);

    boolean insertSelective(UserInfoEntity record);

    UserInfoEntity selectByPrimaryKey(Integer userId);

    boolean updateByPrimaryKeySelective(UserInfoEntity record);

    int updateByPrimaryKey(UserInfoEntity record);

    List<UserInfoEntity> selectAll(UserInfoEntity userInfoEntity);

    UserInfoEntity login(@PathParam("userName") String userName, @PathParam("userPwd") String userPwd);

    boolean batchDelete(Integer[] userIds);

    boolean batchInsert(List<UserInfoEntity> list);
}